
def str_reverse(s):
    return  s[::-1]

def substr(s,x,y):
    return s[x:y:1]
if __name__ == '__main__':
    list = str_reverse("黑马程序员")

print(f"{list}")
print(substr("黑马程序员",1,3))
